<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>Comments &laquo; Admin</title>
    <link rel="stylesheet" href="../assets/lib/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="../assets/lib/font-awesome/css/font-awesome.css">
    <link rel="stylesheet" href="../assets/css/common.css">
</head>
<body>

<div class="main">
    <div class="container-fluid">
        <div class="page-title">
            <h1>所有评论</h1>
        </div>
        <div class="page-action">
            <!-- show when multiple checked -->
            <div class="btn-batch" style="display: none">
                <button id="app-mul" class="btn approve btn-info btn-sm" opt="approve">批量批准</button>
                <button id="rej-mul" class="btn reject btn-warning btn-sm" opt="reject">批量拒绝</button>
                <button id="del-mul" class="btn del btn-danger btn-sm" opt="del">批量删除</button>
            </div>
            <ul id="pagination" class="pagination pagination-sm pull-right">
                <li><a href="#">上一页</a></li>
                <li><a href="#">1</a></li>
                <li><a href="#">2</a></li>
                <li><a href="#">3</a></li>
                <li><a href="#">下一页</a></li>
            </ul>
        </div>
        <table class="table table-striped table-bordered table-hover">
            <thead>
            <tr>
                <th class="text-center" width="40"><input id="ckAll" type="checkbox"></th>
                <th style="min-width:80px;">作者</th>
                <th>评论</th>
                <th width="110" class="text-center">评论在</th>
                <th class="text-center" width="90">提交于</th>
                <th width="80">状态</th>
                <th class="text-center" width="100">操作</th>
            </tr>
            </thead>
            <tbody id="dataset">
            <!--<tr class="danger">-->
            <!--<td class="text-center"><input type="checkbox"></td>-->
            <!--<td>大大</td>-->
            <!--<td>楼主好人，顶一个</td>-->
            <!--<td>《Hello world》</td>-->
            <!--<td>2016/10/07</td>-->
            <!--<td>未批准</td>-->
            <!--<td class="text-center">-->
            <!--<a href="post-add.html" class="btn btn-info btn-xs">批准</a>-->
            <!--<a href="javascript:;" class="btn btn-danger btn-xs">删除</a>-->
            <!--</td>-->
            <!--</tr>-->
            <!--<tr>-->
            <!--<td class="text-center"><input type="checkbox"></td>-->
            <!--<td>大大</td>-->
            <!--<td>楼主好人，顶一个</td>-->
            <!--<td>《Hello world》</td>-->
            <!--<td>2016/10/07</td>-->
            <!--<td>已批准</td>-->
            <!--<td class="text-center">-->
            <!--<a href="post-add.html" class="btn btn-warning btn-xs">驳回</a>-->
            <!--<a href="javascript:;" class="btn btn-danger btn-xs">删除</a>-->
            <!--</td>-->
            <!--</tr>-->
            <!--<tr>-->
            <!--<td class="text-center"><input type="checkbox"></td>-->
            <!--<td>大大</td>-->
            <!--<td>楼主好人，顶一个</td>-->
            <!--<td>《Hello world》</td>-->
            <!--<td>2016/10/07</td>-->
            <!--<td>已批准</td>-->
            <!--<td class="text-center">-->
            <!--<a href="post-add.html" class="btn btn-warning btn-xs">驳回</a>-->
            <!--<a href="javascript:;" class="btn btn-danger btn-xs">删除</a>-->
            <!--</td>-->
            <!--</tr>-->
            </tbody>
        </table>
    </div>
</div>

<script src="../assets/lib/jquery/jquery.js"></script>
<script src="../assets/lib/jquery/jquery.tmpl.min.js"></script>
<script type="x-jquery-tmpl" id="mt">
      <tr comment_id=${id}>
        <td class="text-center"><input type="checkbox"></td>
        <td>${author}</td>
        <td>${content}</td>
        <td>《Hello world》</td>
        <td>${created}</td>
        <td>
             {{if status==0}}
                   未批准
             {{else status==1}}
                   已批准
             {{else status==2}}
                   已驳回
             {{/if}}
        </td>
        <td class="text-center">
          <a href="javascript:;" class="rej btn btn-warning btn-xs">驳回</a>
          <a href="javascript:;" class="del btn btn-danger btn-xs">删除</a>
        </td>
      </tr>


</script>
<script src="../assets/lib/layer/layer.js"></script>
<script src="../assets/lib/bootstrap/js/bootstrap.js"></script>
<script src="../assets/lib/jquery/jquery.cookie.js"></script>
</body>
</html>
<script src="../assets/js/common.js"></script>
<script src="../assets/js/comments.js"></script>
